package com.lahuan.transaction;

import java.math.BigDecimal;


/**
 * @author lfy
 */
public interface TestTransaction {

    /**
     *
     * @param userIdDecRmbAddUsd 扣RMB，加usd的
     * @param userIdDecUsdAddRmb 扣usd，加RMB的
     * @param moneyRmb RMB金额
     * @param moneyUsd usd金额
     * @param transNo 全局唯一的单号
     */
    void tryTransaction(Long userIdDecRmbAddUsd, Long userIdDecUsdAddRmb, BigDecimal moneyRmb,BigDecimal moneyUsd,String transNo);

    void confirmTransaction(Long userIdDecRmbAddUsd, Long userIdDecUsdAddRmb, BigDecimal moneyRmb,BigDecimal moneyUsd,String transNo);

    void cancelTransaction(Long userIdDecRmbAddUsd, Long userIdDecUsdAddRmb, BigDecimal moneyRmb,BigDecimal moneyUsd,String transNo);

}
